package com.coffee.core.util;

import java.awt.image.BufferedImage;
import java.io.IOException;

/**
 * 生成图形验证码工具
 *
 * @author Administrator
 */
public class CodeGeneratorUtils {

    /**
     * 生成校验码字节流
     *
     * @param checkCode 验证码
     */
    public static BufferedImage getCheckcodeStream(String checkCode) throws IOException {
        WordImageProducer producer = new WordImageProducer();
        producer.init();
        return producer.produce(checkCode);
    }
}
